home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3cogroup.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.1 KB  |  115 lines

  1.  
  2. // JavaScript wrapper for r3cogroup.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_COGROUP_H = 1;
  7. include("real/objects/r3constructor.js")
  8.  
  9.  
  10. var R3CLID_COGROUP = 1759;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Create group points from the currently selected *    target points.
  16.  
  17. R3COGROUPM_CREATEFROMSELECTE = 1759000;
  18.  
  19. function mR3COGROUPM_CREATEFROMSELECTE() {
  20.   DoA(this.r3obj, 1759000, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23. // Description: Invert group references - a referred point becomes unreferred and vise versa.
  24.  
  25. R3COGROUPM_INVERTREFERENCES = 1759001;
  26.  
  27. function mR3COGROUPM_INVERTREFERENCES() {
  28.   DoA(this.r3obj, 1759001, 0, R3TID_INTEGER, 0);
  29. }
  30.  
  31. // Description: Apply XOR boolean operation between referred points. as a result, mutually referred points are
  32. //      removed from the given sub groups.
  33. // p3: Object, array of groups    
  34.  
  35. R3COGROUPM_XOR = 1759002;
  36.  
  37. function mR3COGROUPM_XOR(p3) {
  38.   DoA(this.r3obj, 1759002, p3, R3TID_OBJECT, 0);
  39. }
  40.  
  41. // Description: Enumerate target points
  42. // p3: Tag[], R3RA_Hook, R3RA_HookData    
  43.  
  44. R3COGROUPM_ENUMTARGETPOINTS = 1759003;
  45.  
  46. function mR3COGROUPM_ENUMTARGETPOINTS(p3) {
  47.   Do(this.r3obj, 1759003, p3, R3TID_TAG, R3TNF_ARRAY);
  48. }
  49.  
  50. // Description: Select/deselect all target points.
  51. // p3: Boolean, if true selects, otherwise deselects    
  52.  
  53. R3COGROUPM_SELECTTARGETPOINT = 1759004;
  54.  
  55. function mR3COGROUPM_SELECTTARGETPOINT(p3) {
  56.   DoA(this.r3obj, 1759004, p3, R3TID_BOOLEAN, 0);
  57. }
  58.  
  59.  
  60.  
  61.  
  62. R3COGROUPA_PointCount = 1759501;
  63. function SetR3COGROUPA_PointCount(value) {
  64.   R3Set(this.r3obj, R3COGROUPA_PointCount, value, R3TID_INTEGER, 0); 
  65. }
  66.  
  67. function GetR3COGROUPA_PointCount() {
  68.   return R3Get(this.r3obj, R3COGROUPA_PointCount, R3TID_INTEGER, 0); 
  69. }
  70.  
  71. R3COGROUPA_Positions = 1759502;
  72. function SetR3COGROUPA_Positions(value) {
  73.   R3Set(this.r3obj, R3COGROUPA_Positions, value, R3TID_VECTOR, R3TNF_ARRAY); 
  74. }
  75.  
  76. function GetR3COGROUPA_Positions() {
  77.   return R3Get(this.r3obj, R3COGROUPA_Positions, R3TID_VECTOR, R3TNF_ARRAY); 
  78. }
  79.  
  80. var R3COGROUPA_OrigPositions = 1759503; // r3Vect[]
  81. R3COGROUPA_Weight = 1759504;
  82. function SetR3COGROUPA_Weight(value) {
  83.   R3Set(this.r3obj, R3COGROUPA_Weight, value, R3TID_FLOAT, 0); 
  84. }
  85.  
  86. function GetR3COGROUPA_Weight() {
  87.   return R3Get(this.r3obj, R3COGROUPA_Weight, R3TID_FLOAT, 0); 
  88. }
  89.  
  90. var R3COGRHT_VERTEX = 0;
  91.  
  92.  
  93. function r3Cogroup () { 
  94.    this.base = r3God;
  95.    if(arguments.length) {
  96.       this.base(R3CLID_COGROUP, arguments);
  97.    }
  98.    // Methods
  99.    this.CREATEFROMSELECTE=mR3COGROUPM_CREATEFROMSELECTE;
  100.    this.INVERTREFERENCES=mR3COGROUPM_INVERTREFERENCES;
  101.    this.XOR=mR3COGROUPM_XOR;
  102.    this.ENUMTARGETPOINTS=mR3COGROUPM_ENUMTARGETPOINTS;
  103.    this.SELECTTARGETPOINT=mR3COGROUPM_SELECTTARGETPOINT;
  104.  
  105.    // Attributes
  106.    this.GetPointCount=GetR3COGROUPA_PointCount;
  107.    this.SetPointCount=SetR3COGROUPA_PointCount;
  108.    this.GetPositions=GetR3COGROUPA_Positions;
  109.    this.SetPositions=SetR3COGROUPA_Positions;
  110.    this.GetWeight=GetR3COGROUPA_Weight;
  111.    this.SetWeight=SetR3COGROUPA_Weight;
  112. }
  113.  
  114. r3Cogroup.prototype=new r3Constructor;
  115. // r3cogroup.h_H